home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
626-637
/
disk_629
/
apig
/
apig31.lzh
/
aslfont1.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-01-25
|
983b
|
45 lines
/* Example of using ASL Library FONT requester */
/* */
x = addlib("apig.library",0,-30,0)
call set_apig_globals()
freq = ALLOCASLREQUEST(ASL_FONTREQUEST,null())
portname = "aslfont1_port"
p = openport(portname)
WaitForPort portname
wintitle = "ASL FONT Requester Example"
winidcmp = CLOSEWINDOW
winflags = WINDOWCLOSE+WINDOWDRAG+WINDOWSIZING+WINDOWDEPTH+GIMMEZEROZERO
win = openwindow(portname,0,0,640,200,2,4,winidcmp,winflags,wintitle,null(),0,0,0)
wrastport = getwindowrastport(win) /* need rastport to do graphics/itext */
do forever
textfontattr = ASLREQUEST(freq,null(),freq) /* note the font requester */
/* owns the return value */
if textfontattr = null() then
leave
z = pitext(wrastport,10,30,"The FONT you selected",1,2,JAM2,textfontattr)
wait 3 secs
end
call FREEASLREQUEST(freq)
call CLOSEWINDOW(win)
exit